﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class CookRobot:Robot
    {
        private string cai;

        public string Cai { get => cai; set => cai = value; }

        public CookRobot(string name, RobotType type, string cai) : base(name,type)
        {
            this.cai = cai;
        }
        public override void Working()
        {
            Console.WriteLine("{0},搞个{1}",this.Name,this.cai);
        }
    }
}
